package edu.lingnan.ns_ebusiness.controller;


import edu.lingnan.ns_ebusiness.pojo.TbUser;
import edu.lingnan.ns_ebusiness.service.TbUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 陈世杰
 * @since 2022-01-04
 */
@Controller
public class TbUserController {
    @Autowired
    private TbUserService tbUserService;
    @GetMapping("/selectAllUser")
    public List<TbUser> selectAllUser(){
       return tbUserService.list();
    }
}

